import request from "@/utils/request";
import { serverBaseURL } from '@/constant/system.js'
// 请求地址前缀(微服务配置中的服务名称)
const baseURL = serverBaseURL

// 分页查询
export function selectByPage(data) {
  return request({
    url: baseURL+"/instrument/selectByPage",
    method: "post",
    data,
  });
}
export function getInstrumentByID(data) {
  return request({
    url: baseURL+"/instrument/getByID",
    method: "post",
    data,
  });
}
export function deleteInstrument(data) {
  return request({
    url: baseURL+"/instrument/delete",
    method: "post",
    data,
  });
}
export function addInstrument(data) {
  return request({
    url: baseURL+"/instrument/add",
    method: "post",
    data,
  });
}
export function updateInstrument(data) {
  return request({
    url: baseURL+"/instrument/update",
    method: "post",
    data,
  });
}
export function getUnExpirationData(data) {
  return request({
    url: baseURL+"/instrument/getUnExpirationData",
    method: "post",
    data,
  });
}

